package com.yd.mvc.baseController;

import com.yd.app.service.common.LoggerService;
import com.yd.domain.commom.PageModel;
import com.yd.domain.sys.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.Map;

/**
 * @Author: zy
 * @Desc: 日志
 * @Date:  2018/3/12
 * @Param
 */
@Controller
@RequestMapping(value = "/api/logger")
public class LoggerController extends BaseController {
    @Autowired
    private LoggerService loggerService;
    @RequestMapping(value = "/list/{pageIndex}/{pageSize}", method = RequestMethod.POST)
    public PageModel getShareList(@RequestBody Logger param, @PathVariable("pageIndex")int pageIndex, @PathVariable("pageSize")int pageSize){
        PageModel pm=loggerService.getLoggerList(param,pageIndex,pageSize);
        return pm;
    }

}
